package com.lb.algorithm;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author: zhangjun
 * @Date: 2020/8/3 13:40
 * @Description:
 */
public class CombinationList {
    public static void main(String[] args) {
        List arrayLists = new ArrayList();
        String[] color={"红色","白色","蓝色","金色"};
        String[] size={"4.7寸","5.1寸","6.0寸"};
//        String[] version={"联通","电信","移动","全网通"};

        List<String> list1 = Arrays.asList(color);
        List<String> list2 = Arrays.asList(size);
//        List<String> list3 = Arrays.asList(version);
        arrayLists.add(list1);
        arrayLists.add(list2);
//        arrayLists.add(list3);
        List<List<String>> descartes = ArrayUtils.getPermutations(arrayLists);
        descartes.forEach(System.out::println);

    }

}
